import Mock, {
    mock
} from "mockjs";
// var Mock = require('mockjs')
var Random = Mock.Random;

const data = Mock.mock({
    "data|30": [{
        'id': '@id',
        'title': '@ctitle(5,10)',
        'img': 'images(100x100,@color)',
        'name': '@cname',
        'word': '@cword(5,10)',
        'color': '@color',
        'year|1967-2012': +1,
        'type': '@cname',
        'value|1-800': 800,
        'time': '@time("HH:mm:ss")',
        'type|1': ['download','register','bill'],
        'x|1-100': 100,
        'y|1-100': 100,
    }],
    'arr|10': [
        {
            'type': '@city',
            'score|1-800': 800
        }
       
    ],
    "datt|30": [{
        'id': '@id',
        'title': '@ctitle(5,10)',
        'img': 'images(100x100,@color)',
        'name': '@cname',
        'word': '@cword(5,10)',
        'color': '@color',
        'year|1967-2012': +1,
        'type': '@cname',
        'value|1-800': 800,
        'time': '@time("HH:mm:ss")',
        
        'x|1-100': 100,
        'y|1-100': 100,
    }],
})





Mock.mock("/api/list", "get", () => {
    return data;
});